.di-c {
  display: inline-block;
  vertical-align: middle;
}
.w-full{
  width: 100%;
}
.h-full{
  height: 100%;
}
.df-sbc {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.df-sbs {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.df-sbe {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.text-bold{
  font-weight: bold;
}
.df-cc {
  display: flex;
  justify-content: center;
  align-items: center;
}

.df-sc {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.df-ss {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.df-se {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.df-ec {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

// 定义字体(px)单位，小于20都为px单位字体
@for $i from 9 to 40 {
  .ft-#{$i} {
    font-size: $i + px;
  }
}

// 定义gap
@for $i from 0 through 40 {
  .gap-#{$i} {
    gap: $i + px;
  }
}

/* start--文本行数限制--start */
.line-1 {
  overflow: hidden;
  white-space: nowrap !important;
  text-overflow: ellipsis;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.line-4 {
  -webkit-line-clamp: 4;
}

.line-5 {
  -webkit-line-clamp: 5;
}

.line-2,
.line-3,
.line-4,
.line-5 {
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box; // 弹性伸缩盒
  -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
}

/* end--文本行数限制--end */
.common-content {
  margin: 0 auto;
  width: $content-width;
  z-index: 1;
  position: relative;
}
.flex-1{
  flex: 1;
}

.mask-box {
  position: relative;
  --bg-color: #015293;
  cursor: pointer;

  &:before {
    content: '';
    display: block;
    position: absolute;
    background: var(--bg-color);
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    transition: all ease-in-out .3s;
  }

  &:hover {
    &:before {
      height: 100%;
    }
  }
}
